#!/bin/bash
IP_SERVER=$(curl -s http://www.sputnick-area.net/ip.php)
NBRE_LIGNE=$(cat /var/log/____LOG_____CRONTAB_2MIN8FILEs | wc -l)
#NBRE_LIGNE=`expr $NBRE_LIGNE / 2`
#echo "NBRE_LIGNE = "$NBRE_LIGNE
#echo "PSERVER = "$IP_SERVER
NBRE_LIGNE=`expr $NBRE_LIGNE / 2`

sudo iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -j SNAT --to-source $IP_SERVER

#sh start_LIB.sh "Init iptable" $NBRE_LIGNE
#TIME_START_SCRIPT=$(date '+%A-%d (%Hh:%Mm:%Ss)')
#sh start_LIB.sh  $NBRE_LIGNE
#echo "yesssss Each 2"  $TIME_START_SCRIPT  ">> "$NBRE_LIGNE >> /var/log/LOOOOOGGGGG_CRONTAB_2MIN8FILEs
sh /root/install/start_LIB.sh "Init iptable $NBRE_LIGNE"
